--[[ params.darkshadow_beard_sack_2 =
{
    widget =
    {
        slotpos =
        {
            Vector3(-(64 + 12) / 2, 0, 0),
            Vector3((64 + 12) / 2, 0, 0),
        },
        animbank = "ui_chest_3x3",
        animbuild = "ui_chest_3x3",
        pos = Vector3(-82, 89, 0),
        darkshadow_animscale_x = 0.6,
        darkshadow_animscale_y = 0.3,
        bottom_align_tip = -100,
    },
    type = "side_inv_behind",
    acceptsstacks = true,
    lowpriorityselection = true,
    -- excludefromcrafting = false,
} ]]
--写widget的时候加上_animscale_x
--调整容器大小
local containerwidget = require "widgets/containerwidget"
local oldOpen = containerwidget.Open
function containerwidget:Open(container, doer, ...)
	oldOpen(self, container, doer, ...)
	local widget = container.replica.container:GetWidget()
	if widget then
		if widget.darkshadow_animscale_x and widget.darkshadow_animscale_y then
			self.bganim:SetScale(widget.darkshadow_animscale_x, widget.darkshadow_animscale_y)
		end
	end
end
